<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/PersonnelWork/personnelWork" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="personnelWork" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label>批次号：</label>
            <input type="text" name="lotId" value="${lotId}" size="16" placeholder="批次号"/>&nbsp;
            <label>产品编码：</label>
            <input type="text" name="partName" value="${partName}" size="16" placeholder="产品编码"/>&nbsp;
            <label>人员工号：</label>
            <input type="text" name="oper" value="${oper}" size="16" placeholder="人员工号"/>&nbsp;
            <label>产品图号：</label>
            <input type="text" name="tuhao" value="${tuhao}" size="16" placeholder="产品图号"/>
            <br /><br />
            <label>作业时间：</label>
            <input type="text" name="startTime" value="${startTime}" data-pattern="yyyy-MM-dd" size="12" data-toggle="datepicker" placeholder="FROM">
            <input type="text" name="endTime" value="${endTime}" data-pattern="yyyy-MM-dd" size="12" data-toggle="datepicker" placeholder="TO">&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/WipDetail/exportExcel')" 
                    data-icon="file-excel-o" title="导出Excel">导出</button>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <g:if test="${personnelWork.size() > 0}">
        <table  data-toggle="tablefixed" data-width="120%" data-nowrap="true">
            <thead>
            <tr id="t1">
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                    <g:if test="${headInstance!='RN'}">
                        <th><g:message code="${headInstance}" default="${headInstance}"/></th>
                    </g:if>
                </g:each>
            </tr>
            </thead>
            <tbody>
            <g:if test="${personnelWork.size()>0}">
                <g:each in="${personnelWork}" status="i" var="dataInstance">
                    <tr>
                        <g:each in="${tableHeadList}" status="j" var="headInstance">
                            <g:if test="${headInstance=="工号" || headInstance=="姓名" || headInstance=="工序代码" }">
                                <td>${dataInstance["${headInstance}"]}</td>
                            </g:if>
                            <g:elseif test="${headInstance!='RN'}">
                                <td>${dataInstance["${headInstance}"]}</td>
                            </g:elseif>
                        </g:each>
                    </tr>
                </g:each>
            </g:if>
            <g:else>
                <g:render template="../template/emptyPanel" />
            </g:else>
            </tbody>
        </table>
    </g:if>
</div>
<g:render template="../template/pagination" />